from django.contrib import admin
from mgmt.models import Security
from mgmt.models import Batch
from mgmt.models import BatchCar


@admin.register(Security)
class SecurityAdmin(admin.ModelAdmin):
    list_display = ("level", "creater", "updated")



@admin.register(Batch)
class BatchAdmin(admin.ModelAdmin):
    list_display = ("title", "startdate", "enddate", "isfree", "creater")
    list_filter = ("isfree","creater",)


@admin.register(BatchCar)
class BatchAdmin(admin.ModelAdmin):
    list_display = ("batch", "car", )